@import url('./common.less');

.header {
    .navbar {
        width: @base-width;
        height: 70px;
        margin: 0 auto;
        li {
            list-style: none;
            float: left;
            .navbar-item {
                text-decoration: none;
                color: #34495e;
                display: block;
                height: 25px;
                width: 60px;
                padding: 22px 10px;
                text-align: center;
                vertical-align: auto;
                line-height: 20px;
                font-size: @base-font-size;
                border-top: 4px solid white;
                border-left: 1px solid white;
                border-right: 1px solid white;
            }
            .navbar-item-active {
                color: #3498DB;
            }
            .submenu {
                position: absolute;
                z-index: 10;
                display: none;
                background: white;
                float: left;
                li {
                    float: none;
                    width: 100px;
                    text-align: center;
                    line-height: 50px;
                    font-size: @base-font-size;
                }
                li:hover {
                    font-weight: bold;
                    color: #3498DB;
                    background-color: @base-color;
                }
            }
            .navbar-item:hover {
                border-left: 1px solid #ECF0F1;
                border-right: 1px solid #ECF0F1;
                border-top: 4px solid #3498DB;
            }
        }
        li:hover {
            .submenu {
                display: block;
            }
        }
        .logo {
            margin-top: 12px;
        } 
        .right-nav {
            float: right;
            .search {
                .hide-div{
                    .submenu{
                        position: absolute;
                        z-index: 10;
                        display: none;
                        background: white;
                        float: left;
                        li {
                            float: none;
                            width: 100px;
                            text-align: center;
                            line-height: 50px;
                            font-size: @base-font-size;
                        }
                        li:hover {
                            font-weight: bold;
                            color: #3498DB;
                            background-color: @base-color;
                        }
                    }
                    width: 0px;
                    height: 45px;
                    float: left;
                    display: none;
                    margin-left: 1px;
                    // margin-top: -10px;
                    // background-color: red;
                }
                // width: 200px;
                float: left;
                margin-top: 15px;
                margin-right: 20px;
                border-left: 1px solid #ECF0F1;
                border-right: 1px solid #ECF0F1;
                .search-logo {
                    margin-top: 5px;
                    margin-left: 7px;
                    padding-right: 5px;
                }
            }
            .login-hd {
                float: left;
                margin-top: 10px;
                margin-right: 10px;
                a {
                    text-decoration: none;
                    color: #3498DB;
                }
                .login-logo {
                    margin-top: 16px;
                    margin-left: 5px;
                }
                .login {
                    display: block;
                    margin-top: 16px;
                    float: right;
                }
            }
        }
    }
}